package com.symria.server.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Transient;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * SysAreaInfo entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "SYS_AREA_INFO")
public class SysAreaInfo implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer pid;
	private String chnName;
	private String engName;
	private String path;
	private Double minLan;
	private Double maxLan;
	private Double minLat;
	private Double maxLat;
	private Short priority;
	private Short level;
	private String isCapital;
	private String check;

	// Constructors
    @Transient
	public String getCheck() {
		return check;
	}

	public void setCheck(String check) {
		this.check = check;
	}

	/** default constructor */
	public SysAreaInfo() {
	}

	/** full constructor */
	public SysAreaInfo(Integer pid, String chnName, String engName,
			String path, Double minLan, Double maxLan, Double minLat,
			Double maxLat, Short priority, Short level, String isCapital) {
		this.pid = pid;
		this.chnName = chnName;
		this.engName = engName;
		this.path = path;
		this.minLan = minLan;
		this.maxLan = maxLan;
		this.minLat = minLat;
		this.maxLat = maxLat;
		this.priority = priority;
		this.level = level;
		this.isCapital = isCapital;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "PID")
	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	@Column(name = "CHN_NAME", length = 128)
	public String getChnName() {
		return this.chnName;
	}

	public void setChnName(String chnName) {
		this.chnName = chnName;
	}

	@Column(name = "ENG_NAME", length = 128)
	public String getEngName() {
		return this.engName;
	}

	public void setEngName(String engName) {
		this.engName = engName;
	}

	@Column(name = "PATH", length = 256)
	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@Column(name = "MIN_LAN", precision = 10, scale = 4)
	public Double getMinLan() {
		return this.minLan;
	}

	public void setMinLan(Double minLan) {
		this.minLan = minLan;
	}

	@Column(name = "MAX_LAN", precision = 10, scale = 4)
	public Double getMaxLan() {
		return this.maxLan;
	}

	public void setMaxLan(Double maxLan) {
		this.maxLan = maxLan;
	}

	@Column(name = "MIN_LAT", precision = 10, scale = 4)
	public Double getMinLat() {
		return this.minLat;
	}

	public void setMinLat(Double minLat) {
		this.minLat = minLat;
	}

	@Column(name = "MAX_LAT", precision = 10, scale = 4)
	public Double getMaxLat() {
		return this.maxLat;
	}

	public void setMaxLat(Double maxLat) {
		this.maxLat = maxLat;
	}

	@Column(name = "PRIORITY")
	public Short getPriority() {
		return this.priority;
	}

	public void setPriority(Short priority) {
		this.priority = priority;
	}

	@Column(name = "LEVEL")
	public Short getLevel() {
		return this.level;
	}

	public void setLevel(Short level) {
		this.level = level;
	}

	@Column(name = "IS_CAPITAL", length = 1)
	public String getIsCapital() {
		return this.isCapital;
	}

	public void setIsCapital(String isCapital) {
		this.isCapital = isCapital;
	}

}